package com.controller;

import com.service.ContestTeacherService;
import com.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mgl
 * @version 1.0
 * @description 控制器
 * @date 2024/4/21 16:38
 */
@RestController
@RequestMapping("/contestTeacherMapping")
public class ContestTeacherMappingController {

    @Autowired
    private ContestTeacherService contestTeacherService;

    @GetMapping("/list")
    public R getList() {
        return R.ok().put("data", contestTeacherService.selectList(null));
    }
}
